#!/bin/bash
# Zaitan Module - PyContas Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE=1.0
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Office'
RMOD_NAME='PyContas'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.3'
RMOD_DESCRIPTION='Installs PyContas'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'


# install PyContas

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall


cd /usr/share/zaitan	

apt-get update
apt-get -y install python-pysqlite2

wget -c http://www.guilhermejr.net/download/pyContas-0.3.tar.bz2
bzip2 -dc pyContas-0.3.tar.bz2 | tar xf -
cd pyContas	
bash setup.bash



echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

